package pathfinder;

public class Point {
    public double x;
    public double y;
    
    
    Point(double x, double y)
    {
        this.x = x;
        this.y = y;
    }
    
    Point(java.awt.Point p)
    {
        x = p.getX();
        y = p.getY();
    }
    
    public void set(Point p)
    {
        x = p.x;
        y = p.y;
    }
    
    @Override
    public Point clone()
    {
         return new Point(x,y);
    }
    
    @Override
    public String toString()
    {
        StringBuilder result = new StringBuilder();
        String NEW_LINE = System.getProperty("line.separator");
        result.append("(" + x + "," + y + ")");
        return result.toString();
    }
}
